package com.goldsprite.contourextraction.core;

public class ImageConstants {
	public static final int BACKGROUND = 0;
	public static final int FOREGROUND = 1;
	public static final int VISITED = 2;

	// 8-邻域方向: 右 右上 上 左上, 左 左下 下 右下
	public static final int[][] DIRECTIONS_8 = {
		{1, 0}, {1, 1}, {0, 1}, {-1, 1},
		{-1, 0}, {-1, -1}, {0, -1}, {1, -1}
	};

	// 4-邻域方向: 右 上 左 下
	public static final int[][] DIRECTIONS_4 = {
		{1, 0}, {0, 1}, {-1, 0}, {0, -1}
	};
}
